<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-if 指令</title>
</head>
<body>
<div id="app">
    <div>Hello， World！</div>
    <div v-if="true">Hello， World！</div>
    <div v-if="false">Hello， World！</div>

    <div v-if="isShow">使用变量判断</div>

    <div v-if="lang === 'chs'">使用中文显示</div>
</div>
<script type="module">
    import {createApp, ref} from "../../../../../js/vue.esm-browser.js";

    const app = createApp({
        setup() {
            let isShow = ref(true)
            let lang = ref("chs")
            return {isShow, lang}
        }
    })

    app.mount("#app")
</script>
</body>
</html>